package com.imau.brand.service;

import com.imau.brand.bean.Brand;
import com.imau.brand.bean.PageEntitry;

import java.util.List;

public interface BrandService {

    public boolean saveBrand(Brand brand);

    public boolean editBrand(Brand brand);

    public boolean dleBrand(Integer id);

    public Brand findById(Integer id);

    public List<Brand> findAll();

    public boolean  deleteBatchByIds(Integer[] ids);


    /**总条数*/
    public  Integer selectTotal();

    /**分页查询*/
    public PageEntitry<Brand> selectByPage(Integer currentPage, Integer pageSize);

    /**总条数*/
    public  Integer selectTotalByCondition(Brand brand);

    /**分页查询*/
    public PageEntitry<Brand> selectPageByCondition(Integer currentPage, Integer pageSize,Brand brand);

}
